home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / grob.com < prev    next >
Text File  |  1995-03-23  |  3KB  |  78 lines

  1. Article 5768 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!chalmers.se!etek.chalmers.se!etek.chalmers.se!erikmb
  3. From: erikmb@etek.chalmers.se (Erik Bryntse)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: GROB Compression Programs (HP48SX)
  6. Message-ID: <1991Apr10.232801.9480@etek.chalmers.se>
  7. Date: 10 Apr 91 23:28:01 GMT
  8. Sender: erikmb@etek.chalmers.se (Erik Bryntse)
  9. Organization: Chalmers University of Technology, Gothenburg, Sweden
  10. Lines: 64
  11.  
  12.  
  13. GROB COMPRESSION / UNCOMPRESSION PROGRAMS
  14. =========================================
  15.  
  16. Here is two small programs that compresses and uncompresses GROBs. The
  17. compression method is simple Run-Length Encoding, which means that a number 
  18. of equal nibbles will be compressed into three nibbles saying "here comes
  19. 57 nibbles of zeroes" for example.
  20.  
  21. The efficiency of the programs depend largely on the type of GROB that you
  22. are using. A picture with large areas of a single pattern and horizontal
  23. lines will perhaps be compressed to 1/20 of the original size, but a very
  24. complex picture may not be compressed at all (or even increase in size).
  25.  
  26. Since UPGROB is very small (145 bytes) and fast, it can easily be imple-
  27. mented in games and other programs, where you wish to have nice screens
  28. without running out of memory. It will probably save memory even if you
  29. only have one screen GROB.
  30.  
  31. The programs behave nicely with all necessary error checking.
  32.  
  33.  
  34. PGROB (compress GROB)
  35. -----
  36. 1: GROB  -->  1: Binary Integer
  37.  
  38.  
  39. UPGROB (uncompress GROB)
  40. ------
  41. 1: Binary Integer  -->  1: GROB
  42.  
  43.  
  44. (Note: the binary integer that PGROB returns is never 16 nibbles long.
  45. This means that you cannot edit it, and therefore you cannot crash
  46. UPGROB this way.)
  47.  
  48.  
  49. PGROB in ASC-format
  50.  
  51. %%HP: T(3)A(D)F(.);
  52. "D9D20ECE8176040CCD20EB1008FB976014713506174147DAF4C2818F2E8FD7B5
  53. 081AF1813581AF0A80824E4A20141818F2913507818F24134142CAD816415271
  54. 517179818F2E13481AF0813713581AF0917115201510D31701601361348B9606
  55. 6601560155090661B67AEB808A73DA6F654031409EBB3136EB134137EB13581A
  56. F11E2808A7A9818FA27BA013313181AF01627F137135EB81AF11E2818FA28AA8
  57. 1CE7A70137135EBCE81AF0981AF1913596B01AEB8089714D1721361348B56066
  58. 1F81AF1A81AF0806133130EA34A10008A6501608F176618F2D760071458DF192
  59. 081AF1113314D13101B21300239"
  60.  
  61.  
  62. UPGROB in ASC-format
  63.  
  64. %%HP: T(3)A(D)F(.);
  65. "D9D20ECE81D5040CCD204F0008FB97601471350617414334510008A6018F2D76
  66. 08D7AC8117414381AF0117414381AF008F3B51113681AF0813507818F2413414
  67. 2CAD816E14A1611361348BD46808770431F09EAF11567155716F17F81868F31F
  68. 09E65E15601550160170A6C5EE6DAF8084715601550170A6C55F160609F81AF1
  69. 08D1FF11B2130D903"
  70.  
  71.  
  72. Happy graphing!
  73.  
  74. Erik Bryntse
  75. erikmb@cd.chalmers.se
  76.  
  77.  
  78.